target_sources(gpsbabel PRIVATE ${SOURCES} ${HEADERS})
# We don't care about stripping things out of the build. Full monty, baby.
-target_compile_definitions(gpsbabel PRIVATE MAXIMAL_ENABLED)
target_compile_definitions(gpsbabel PRIVATE FILTERS_ENABLED)
+target_compile_definitions(gpsbabel PRIVATE SHAPELIB_ENABLED)
target_compile_definitions(gpsbabel PRIVATE CSVFMTS_ENABLED)
target_link_libraries(gpsbabel PRIVATE ${QT_LIBRARIES} ${LIBS})
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#if CSVFMTS_ENABLED
-
#include "garmin_txt.h"
#include <algorithm> // for for_each, sort
}
}
-#endif // CSVFMTS_ENABLED
#ifndef GARMIN_TXT_H_INCLUDED_
#define GARMIN_TXT_H_INCLUDED_
-#if CSVFMTS_ENABLED
-
#include <array> // for array
#include <cstdint> // for uint16_t
#include <ctime> // for time_t
PathInfo* cur_info{};
};
-#endif // CSVFMTS_ENABLED
#endif // GARMIN_TXT_H_INCLUDED_
NmeaFormat nmea_fmt;
OziFormat ozi_fmt;
KmlFormat kml_fmt;
-#if MAXIMAL_ENABLED
LowranceusrFormat lowranceusr_fmt;
Tpo2Format tpo2_fmt;
Tpo3Format tpo3_fmt;
MtkFileFormat mtk_ffmt;
MtkM241Format mtk_m241_fmt;
MtkM241FileFormat mtk_m241_ffmt;
-#endif // MAXIMAL_ENABLED
-#if MAXIMAL_ENABLED
UnicsvFormat unicsv_fmt;
GtmFormat gtm_fmt;
-#if CSVFMTS_ENABLED
GarminTxtFormat garmin_txt_fmt;
-#endif // CSVFMTS_ENABLED
GtrnctrFormat gtc_fmt;
GarminGPIFormat garmin_gpi_fmt;
RandomFormat random_fmt;
GarminFitFormat format_fit_fmt;
GeoJsonFormat geojson_fmt;
GlobalsatSportFormat globalsat_sport_fmt;
-#endif // MAXIMAL_ENABLED
const QVector<vecs_t> vec_list {
-#if CSVFMTS_ENABLED
/* XCSV must be the first entry in this table. */
{
nullptr,
nullptr,
&fmtfactory<XcsvFormat>
},
-#endif
{
nullptr,
"geo",
"kml",
nullptr,
},
-#if MAXIMAL_ENABLED
{
&lowranceusr_fmt,
"lowranceusr",
"bin",
nullptr,
},
-#endif // MAXIMAL_ENABLED
-#if MAXIMAL_ENABLED
{
nullptr,
"vcard",
"gtm",
nullptr,
},
-#if CSVFMTS_ENABLED
{
&garmin_txt_fmt,
"garmin_txt",
"txt",
nullptr,
},
-#endif // CSVFMTS_ENABLED
{
>c_fmt,
"gtrnctr",
nullptr,
&fmtfactory<GoogleTakeoutFormat>
}
-#endif // MAXIMAL_ENABLED
};
};
disp_vec_options(fmtdata.fmtname, args);
}
-#if CSVFMTS_ENABLED
/*
* For style based formats let xcsv know the style file. Otherwise
* make sure xcsv knows no style file is in use. This covers the case
if (xcsvfmt != nullptr) {
xcsvfmt->xcsv_setup_internal_style(fmtdata.style_filename);
}
-#endif // CSVFMTS_ENABLED
}
Vecs::fmtinfo_t Vecs::find_vec(const QString& fmtargstring)
}
}
-#if CSVFMTS_ENABLED
/* The style formats are based on the xcsv format,
* Make sure we know which entry in the vector list that is.
*/
if (d_ptr_->vec_list.at(0).factory != nullptr) {
delete xcsvfmt;
}
-#endif // CSVFMTS_ENABLED
/*
* Display the available formats in a format that's easy for humans to
#include "src/core/datetime.h" // for DateTime
#include "src/core/textstream.h" // for TextStream
-#if CSVFMTS_ENABLED
-
/*
* Class describing an xcsv format.
*/
};
-#endif // CSVFMTS_ENABLED
#endif // XCSV_H_INCLUDED_